Skip to contentSkip to conversation

Regression: dark notebook display (no backlight) after resume

Bug 109375 [email protected] 1 participant 7 messages Jan 16, 2019 – Feb 4, 2019

lore
Share & tools
lore

[email protected]

author Reviewed-by Tony Cheng Acked-by Leo Li
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109375

Bug ID: 109375
Summary: Regression: dark notebook display (no backlight) after
resume
Product: DRI
Version: XOrg git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

I use HP EliteBook 745 G5 with Ryzen 5 PRO 2500U.

Starting with the:
commit 262485a50fd4532a8d71165190adc7a0a19bcc9e (refs/bisect/bad)

Author: Anthony Koo <[email protected]>
Date:   Fri Oct 12 21:34:32 2018 -0400

drm/amd/display: Expand dc to use 16.16 bit backlight

[Why] We want to increase precision for backlight setting. But DC interface takes 8 bit backlight level value only.

[How] DMCU already takes 16 bit backlight level. Expand the DC interface to take 16.16 bit value. Max 32 bit backlight value (0xFFFF) will represent max backlight (100%)

After resume from RAM my notebook display is all black.

Before suspend:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

65535
255

After resume:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

0
255

This can be workarounded by:
echo 255 > /sys/class/backlight/amdgpu_bl0/brightness assuming one can execute that without a working display.

This problem still exists in the 5.0.0-rc2.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109375

--- Comment #1 from Rafał Miłecki <[email protected]> --- For a comparison: behavior with the commit 262485a50fd4~1 (before the regression):

Before suspend:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

255
255

After resume:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

250
255

Looks like a problem with amdgpu restoring backlight after resume.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109375

--- Comment #2 from Leo Li <[email protected]> ---
Created attachment 143141
--> https://bugs.freedesktop.org/attachment.cgi?id=143141&action=edit
drm/amd/display: Detach backlight from stream

Hi Rafał,
Please give the attached patch a shot. It's in our staging branch, but not in 5.0-rc2 yet.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109375

--- Comment #3 from Rafał Miłecki <[email protected]> ---
It didn't apply cleanly on top of 5.0.0-rc2 (a trivial conflict in the dc_link.c.rej). After fixing that, compiling & testing I can confirm is solves the problem for me! Thanks!

Before suspend:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

65535
255

After resume:

Quoted 1 line

cat /sys/class/backlight/amdgpu_bl0/{actual_brightness,brightness}

64000
255

As it fixes a regression, can you submit it as a fix for the 5.0 release cycle, please?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109375

--- Comment #4 from Alex Deucher <[email protected]> --- Should be fixed with:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35dad45d5cad3c9ca8d6a338cbf668cd7ea86469

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109375

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |christian.frank.uwb@googlem
                   |                            |ail.com

--- Comment #5 from Alex Deucher <[email protected]> --- *** Bug 109388 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109375

Rafał Miłecki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Rafał Miłecki <[email protected]> --- Fixed with the 5.0.0-rc3. Thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel